import {Component, OnInit, ViewEncapsulation, ChangeDetectionStrategy, Input} from '@angular/core';

@Component({
  selector: 'seed-goods-button',
  templateUrl: './goods-button.component.html',
  styleUrls: ['./goods-button.component.scss'],
  encapsulation: ViewEncapsulation.None,
  changeDetection: ChangeDetectionStrategy.OnPush,
})
export class GoodsButtonComponent implements OnInit {
  private _attrCode: string;
  private _isDisabled: boolean;

  @Input()
  set isDisabled(val){
    this._isDisabled = val;
  }
  get isDisabled(){
    return this._isDisabled;
  }

  @Input()
  set attrCode(val){
    this._attrCode = val;
  }
  get attrCode(){
    return this._attrCode;
  }

  constructor() {
    this.isDisabled = false;
  }



  ngOnInit() {
  }

}
